package org.jeecg.controller;

import org.jeecg.domain.dto.ServeProviderDto;
import org.jeecg.domain.dto.ServeProviderRenZhengDto;
import org.jeecg.service.ServeProviderService;
import org.jeecg.service.WorkerCertificationService;
import org.jeecg.utils.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/renzheng")
public class WorkerCertificationController {
    @Autowired
    private WorkerCertificationService workerCertificationService;

//    服务人员认证信息分页
    @GetMapping("/renzhengList")
    public ResponseResult renzhengList(ServeProviderRenZhengDto serveProviderDto){
        return workerCertificationService.renzhengList(serveProviderDto);
    }

//    认证信息
    @PostMapping("/renzhengInfo")
    public ResponseResult renzhengInfo(Long id){
        return workerCertificationService.renzhengInfo(id);
    }

//    审核通过
    @PostMapping("/tongguo")
    public ResponseResult tongguo(Long id){
        return workerCertificationService.tongguo(id);
    }
//    审核驳回
    @PostMapping("/bohui")
    public ResponseResult bohui(Long id){
        return workerCertificationService.bohui(id);
    }
}
